package com.weihui.jxc.model;

import com.weihui.jxc.common.ValidationManager;

/**
 * 存放多表连查信息
 * @author xiaowei
 *
 */
public class GoodsInfo extends Goods {
	private String providerName;// 多表联查获取供应商全称

	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}

	/**
	 * 用户表格的展示
	 */
	@Override
	public Object getValue(Integer columnNumber) {
		switch (columnNumber) {
		case 0:// 编号
			return ValidationManager.changeNull(getId());
		case 1:// 商品全称
			return ValidationManager.changeNull(getGoodsname());
		case 2:// 商品简称
			return ValidationManager.changeNull(getShorts());
		case 3:// 产地
			return ValidationManager.changeNull(getProductplace());
		case 4:// 规格
			return ValidationManager.changeNull(getSize());
		case 5:// 包装
			return ValidationManager.changeNull(getPackages());
		case 6:// 商品批号
			return ValidationManager.changeNull(getProductcode());
		case 7:// 批准文号
			return ValidationManager.changeNull(getPromitcode());
		case 8:// 价格
			return ValidationManager.changeNull(getPrice());
		case 9:// 备注
			return ValidationManager.changeNull(getMemo());
		case 10:// 供应商全称
			return ValidationManager.changeNull(getProviderName());
		default:
			return "";
		}

	}

}